<?php
    echo validation_errors("<li>", "</li>");
?>
<!-- Edit Form -->
<div class="formPanel02">
    <form id="input_form_provider_edit" action="<?php echo base_url(); ?>admin_combo/provider/edit/<?php echo $info_edit["prov_id"]; ?>" method="post">
        <fieldset>
            <legend>Thêm nhà cung cấp</legend>
                <table id="tbfrmaction">
                    <tr>
                        <td>Tên</td>
                        <td>
                            <input type="text" id="txtName" name="txtName" size="30" class="required" 
                                   value="<?php if(isset($info_edit)) echo $info_edit["prov_name"]; ?>"/>
                        </td>
                        <td>Địa chỉ</td>
                        <td>
                            <input type="text" id="txtAddress" name="txtAddress" size="30" class="required" 
                                   value="<?php if(isset($info_edit)) echo $info_edit["prov_address"]; ?>"/>
                        </td>
                    </tr>
                    <tr>
                        <td>Điện thoại</td>
                        <td><input type="text" id="txtPhone" name="txtPhone" size="30" class="required digits" 
                                   value="<?php if(isset($info_edit)) echo $info_edit["prov_phone"]; ?>" /></td>
                        <td>Email</td>
                        <td><input type="text" id="txtEmail" name="txtEmail" size="30" class="required email" 
                                   value="<?php if(isset($info_edit)) echo $info_edit["prov_email"]; ?>" /></td>
                    </tr>
                    <tr>
                        <td>Khu Vực</td>
                        <td><input type="text" id="txtArea" name="txtArea" size="30" class="required" 
                                   value="<?php if(isset($info_edit)) echo $info_edit["prov_area"]; ?>" /></td>
                        <td>Ghi Chú</td>
                        <td><textarea id="txtNote" name="txtNote" cols="30" rows="3"><?php if(isset($info_edit)) echo $info_edit["prov_note"]; ?></textarea></td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td><input type="submit" id="btnSubmit_provider" class="button" name="ok" value="Cập nhật" /></td>
                    </tr>
                </table>
        </fieldset>
    </form>
</div>
